<extend name="common:commonNewerTemplate"/>
<block name="main_content">
    <style>
        .select2-container {  width: 25% !important; }
    </style>
    <div id="content">
        <div id="content-header">
            <div id="breadcrumb">
                <a class="tip-bottom" href="index.html"
                   data-original-title="Go to Home"><i class="icon-home"></i> 首页</a> <a
                    href="#">客户</a> <a class="current" href="#">客户详情</a>
            </div>
        </div>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <div class="widget-box">
                        <div class="widget-title">
						<span class="icon"> <i class="icon-info-sign"></i>
						</span>
                            <h5>客户信息</h5>
                        </div>
                        <div class="widget-content nopadding">
                            <form novalidate="novalidate" id="basic_validate"
                                  name="basic_validate" action="#" method="post"
                                  class="form-horizontal">
                                <div class="control-group">
                                    <label class="control-label">客户名称<span class="required-tips">*</span></label>
                                    <div class="controls">
                                        <input type="hidden" name="user_id" value="{$user.user_id}">
                                        <input type="text" id="user_name" name="user_name" value="{$user.user_name}"/>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">真实姓名<span class="required-tips">*</span></label>
                                    <div class="controls">
                                        <input type="text" id="real_name" name="real_name" value="{$user.real_name}">
                                    </div>
                                </div>

                       <!--         <div class="control-group">
                                    <label class="control-label">头像</label>
                                    <div class="controls">
                                        <input type="text" name="avata" value="{$user.avata}"/>
                                    </div>
                                </div>-->

                                <div class="control-group">
                                    <label class="control-label">邮箱<span class="required-tips">*</span></label>
                                    <div class="controls">
                                        <input type="text" id="email" name="email" value="{$user.email}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">手机<span class="required-tips">*</span></label>
                                    <div class="controls">
                                        <input type="text" id="cell_phone" name="cellphone" value="{$user.cell_phone}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">电话</label>
                                    <div class="controls">
                                        <input type="text" id="phone" name="phone" value="{$user.phone}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">性别</label>
                                    <div class="controls">
                                        <select name="sex">
                                            <if condition="$user['sex'] eq '0'">
                                                <option value="0" selected>男</option>
                                                <option value="1">女</option>
                                                <else />
                                                <option value="0">男</option>
                                                <option value="1" selected>女</option>
                                            </if>
                                        </select>

                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">出生日期</label>
                                    <div class="controls">
                                        <input type="text" class="laydate-icon" onclick="laydate()" name="birthday" value="{$user.birthday}"  readonly >
                                    </div>
                                </div>

                                <div class="control-group">
                                    <label class="control-label">账户名称</label>
                                    <div class="controls">
                                        <input type="text" id="account_name" name="account_name" value="{$user.account_name}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">账户类型</label>
                                    <div class="controls">
                                        <input type="text" name="account_type" value="{$user.account_type}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">账户来源</label>
                                    <div class="controls">
                                        <input type="text" name="account_source" value="{$user.account_source}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">余额</label>
                                    <div class="controls">
                                        <input type="text" name="amount" value="{$user.amount}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">积分</label>
                                    <div class="controls">
                                        <input type="text" name="points" value="{$user.points}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">分享码</label>
                                    <div class="controls">
                                        <input type="text" name="share_code" value="{$user.share_code}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">省市区</label>
                                    <input type="hidden" id="temp_province" value="{$user.province_id}">
                                    <input type="hidden" id="temp_city" value="{$user.city_id}">
                                    <input type="hidden" id="temp_district" value="{$user.district_id}">

                                    <div class="controls">
                                        <select id="ssl_province" name="province_id">
                                        </select>


                                        <select id="ssl_city" name="city_id">
                                        </select>

                                        <select id="ssl_district" name="district_id">
                                        </select>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">地址<span class="required-tips">*</span></label>
                                    <div class="controls">
                                        <input type="text" name="address" value="{$user.address}" style="width: 90%;">
                                    </div>
                                </div>

                                <div class="control-group">
                                    <label class="control-label">状态</label>
                                    <div class="controls">
                                        <select id="status" name="status">
                                            <if condition="$user['status'] eq '1'">
                                                <option value="1" selected>有效</option>
                                                <option value="0">无效</option>
                                                <else />
                                                <option value="1">有效</option>
                                                <option value="0" selected>无效</option>
                                            </if>

                                        </select>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <a id="btn_addUser" class="btn btn-success">{$operate_name}</a>
                                    <a id="btn_addAddress" class="btn btn-success" href="/address/listAddress?user_id={$user.user_id}">新增用戶地址</a>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="js_content">
    <script src="/Public/js/laydate/laydate.js"></script>
    <script src="/Public/js/project/common.js?v=14"></script>
    <script src="/Public/js/useradd.js?v=33"></script>
</block>